#include <stdio.h> 

static int numberCnt[10] = {0};

void statisNumCnt( int data)
{
	while ( data != 0 ) {
		int number = data % 10;
		data /= 10;
		numberCnt[number] ++;
	}
}

int main()
{
	int m = 0, n = 0;
	scanf("%d %d", &m, &n);
	for ( int i = m; i <= n; i++ ) {
		statisNumCnt(i);
	}
	for ( int i = 0; i < 10; i++ ) {
		printf("%d ", numberCnt[i]);
	}
	return 0;
}
